package com.flycent.hqhs;

/**
 * 静态常量
 * 
 * @author fbl
 *
 */
public final class Constants {
	
	public static final String ACTION_NAME = "addMessage";
	public static final String ACTION_REMOVE = "RemoveMessage";
	public static final String ACTION_EMPTY = "emptyMessage";
	public static final String ACTION_UPDATEBADGE = "updateBadgeMessage";
	public static final String ACTION_CALCULATION = "calculationMessage";
	
	public static final String IP = "http://221.178.139.194:61088/hsc";//109外网
//	public static final String IP = "http://192.168.1.109:61088/hsc";    //109内网
//	public static final String IP = "http://192.168.0.130:6080/hsc";    //测试
//	public static final String IP = "http://192.168.0.130:6080/hsc";    //测试
	
	// response Json
	public static final String REST_TYPE 	= "type";
	public static final String REST_CODE 	= "code";
	public static final String REST_CONTENT = "content";

	public static boolean isFirstEntry = true;
	public static boolean isAppForground = true;  //该程序是在前台运行，还是已经退出

	/**
	 * 存放后台IP地址
	 */
	
	public static class INFO{

		/* 商品分类 */
//		public static final String PRODUCTCATEGORY = "/productCategory/";
		public static final String PRODUCT_CATEGORY = "/rest/product_category";
		/*检查用户名是否可用*/
		public static final String  CHECK_USERNAME = "/rest/member/check_username";
		/* 刷新验证码 */
		public static final String CAPTCHAIMAGE = "/common/captcha.jhtml?captchaId=";
		/*  注册 */
		public static final String REGISTER = "/rest/member/register";
		/* 找回密码 */
		public static final String FIND_PASSWORD = "/rest/member/password/find";
		/* 重置密码 */
		public static final String RESET_PASSWORD = "/rest/member/password/reset";
		/* 商品详情 */
		public static final String PRODUCTS_DETAILS = "/rest/products/";
		
	}

	/* 测试用的图片地址 */
	public static final String [] images = {	
		"http://images.55bbs.com/55shuoimg/pic/01/f6/3a/01f63a7158490cc27b581b44b287753d610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/ad/0f/65/ad0f651e666f016ead5c50064e930943610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/90/3e/4d/903e4d999b6e1067d5a3b6e468949d0c610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/89/1d/d6/891dd69c385016af4ca6cf1867c237a7610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/fe/c5/58/fec5588658225aa19447d80d5e4381bd610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/ca/52/39/ca52396c2c5be5fba692a46327ab9b7d610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/ec/39/c5/ec39c52014f0ac896c842af018a9f436610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/2c/f9/be/2cf9be852cabef27df62fad178311725610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/f8/85/d6/f885d6deb26d8b495affa9e37d2232d9610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/38/bb/68/38bb68591fb9a87a398237dc17417af8610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/5e/41/38/5e41388565781f966a3bd47fcf653f14610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/ca/24/0f/ca240fe2fd7e9de18ac0b2d1c511ab5c610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/2b/d0/14/2bd014869a8c79bf1a3d506d43f0f29c610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/36/fa/92/36fa926bc6a79c2eeea97efbf969751e610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/e7/4f/e8/e74fe8051f5d0bc5f710718ef322b3db610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/23/0e/0e/230e0ec67023ad10427c2601b831b180610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/75/20/a8/7520a869895d903db63c776ea59bcf2f610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/ba/15/db/ba15dbc7875acf9e293a1746cd11b041610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/09/a1/67/09a167989b4159f92da3ab95c8a14872610x14989.jpg",
		"http://images.55bbs.com/55shuoimg/pic/f4/d8/35/f4d835374a96e43843fe29bfcb0a6e37610x14989.jpg"
	};

	/* 测试用的json */

	public static final String json = "{\"code\":200,\"msg\":\"ok\",list:["
			+ "{\"id\":110,\"avator\":\"http://img0.bdstatic.com/img/image/shouye/leimu/mingxing.jpg\",\"name\":\"小明\",\"content\":\"呜哈哈\",\"urls\":[]},"
			+ "{\"id\":111,\"avator\":\"http://img0.bdstatic.com/img/image/shouye/leimu/mingxing2.jpg\",\"name\":\"王哥\",\"content\":\"有人没\",\"urls\":[\"http://d.hiphotos.baidu.com/album/w%3D2048/sign=14b0934b78310a55c424d9f4837d42a9/a8014c086e061d95e9fd3e807af40ad163d9cacb.jpg\"]},"
			+ "{\"id\":112,\"avator\":\"http://img0.bdstatic.com/img/image/shouye/leimu/mingxing1.jpg\",\"name\":\"聂大骚\",\"content\":\"我只是来露脸的\",\"urls\":[\"http://g.hiphotos.bdimg.com/album/s%3D680%3Bq%3D90/sign=ccd33b46d53f8794d7ff4b26e2207fc9/0d338744ebf81a4c0f993437d62a6059242da6a1.jpg\",\"http://images.55bbs.com/55shuoimg/pic/09/a1/67/09a167989b4159f92da3ab95c8a14872610x14989.jpg\",\"http://images.55bbs.com/55shuoimg/pic/f4/d8/35/f4d835374a96e43843fe29bfcb0a6e37610x14989.jpg\",\"http://c.hiphotos.bdimg.com/album/s%3D900%3Bq%3D90/sign=b8658f17f3d3572c62e290dcba28121a/5fdf8db1cb134954bb97309a574e9258d0094a47.jpg\"]},"
			+ "{\"id\":113,\"avator\":\"http://img0.bdstatic.com/img/image/shouye/leimu/mingxing6.jpg\",\"name\":\"峰兄\",\"content\":\"hello,大家好\",\"urls\":[\"http://images.55bbs.com/55shuoimg/pic/89/1d/d6/891dd69c385016af4ca6cf1867c237a7610x14989.jpg\",\"http://images.55bbs.com/55shuoimg/pic/ca/52/39/ca52396c2c5be5fba692a46327ab9b7d610x14989.jpg\",\"http://images.55bbs.com/55shuoimg/pic/ba/15/db/ba15dbc7875acf9e293a1746cd11b041610x14989.jpg\",\"http://g.hiphotos.bdimg.com/album/s%3D680%3Bq%3D90/sign=e58fb67bc8ea15ce45eee301863b4bce/a5c27d1ed21b0ef4fd6140a0dcc451da80cb3e47.jpg\",\"http://images.55bbs.com/55shuoimg/pic/01/f6/3a/01f63a7158490cc27b581b44b287753d610x14989.jpg\",\"http://c.hiphotos.bdimg.com/album/s%3D680%3Bq%3D90/sign=cdab1512d000baa1be2c44b3772bc82f/91529822720e0cf3855c96050b46f21fbf09aaa1.jpg\"]}]}";


}
